.class public Lnet/kairosoft/android/ninja_ja/Main;
.super Lkairo/android/ui/IApplication;


# static fields
.field public static h:Lkairo/android/ui/w;

.field public static i:I


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lkairo/android/ui/IApplication;-><init>()V

    invoke-static {p0}, Lnet/kairosoft/android/ninja_ja/Main;->a(Lkairo/android/ui/IApplication;)V

    return-void
.end method

.method public static a(Lkairo/android/ui/w;)V
    .locals 4

    const/4 v3, 0x0

    invoke-static {}, Le/a;->a()Le/a;

    move-result-object v0

    invoke-static {}, Lkairo/android/ui/z;->a()Lkairo/android/ui/z;

    move-result-object v1

    sput-object p0, Lnet/kairosoft/android/ninja_ja/Main;->h:Lkairo/android/ui/w;

    const/16 v2, 0x14

    sput v2, Lnet/kairosoft/android/ninja_ja/Main;->i:I

    sget-object v2, Lnet/kairosoft/android/ninja_ja/Main;->h:Lkairo/android/ui/w;

    if-nez v2, :cond_0

    iget-object v0, v0, Le/a;->Z:Lkairo/android/i/k;

    iget-object v0, v0, Lkairo/android/i/k;->b:[I

    const/4 v2, 0x3

    aget v0, v0, v2

    mul-int/lit8 v0, v0, 0x33

    invoke-virtual {v1, v3, v0}, Lkairo/android/ui/z;->a(II)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v1, v3, v3}, Lkairo/android/ui/z;->a(II)V

    goto :goto_0
.end method


# virtual methods
.method protected final c()V
    .locals 14

    const/4 v3, 0x0

    const/4 v0, 0x1

    const/16 v13, 0xb

    const/4 v1, 0x0

    invoke-static {}, Le/a;->a()Le/a;

    move-result-object v5

    invoke-static {}, Lkairo/android/ui/a;->a()Lkairo/android/ui/a;

    move-result-object v6

    const/16 v2, 0x46

    const/16 v4, 0x1c

    const/16 v7, 0x8e

    invoke-static {v2, v4, v7}, Lkairo/android/ui/o;->a(III)I

    move-result v2

    invoke-virtual {v6, v2}, Lkairo/android/ui/a;->g(I)V

    invoke-static {}, Lc/c;->a()Lc/c;

    move-result-object v7

    invoke-virtual {v6, p0}, Lkairo/android/ui/a;->a(Lkairo/android/ui/IApplication;)V

    iget-object v2, v5, Le/a;->b:Lc/b;

    invoke-virtual {v7, v2}, Lc/c;->b(Lkairo/android/a/a;)Z

    :try_start_0
    sget-object v2, Le/a;->bU:Ljava/lang/String;

    invoke-static {v2}, Lcom/android/vending/licensing/a/a;->a(Ljava/lang/String;)[B

    move-result-object v4

    invoke-static {v4}, Lkairo/android/i/d;->c([B)V

    new-instance v2, Lkairo/android/i/g;

    invoke-direct {v2, v4}, Lkairo/android/i/g;-><init>([B)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    const-string v3, "softkey.txt"

    invoke-static {v2, v3}, Lkairo/android/i/m;->a(Lkairo/android/i/g;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_1

    array-length v3, v4

    new-array v8, v3, [[Ljava/lang/String;

    move v3, v1

    :goto_0
    array-length v9, v8

    if-ge v3, v9, :cond_0

    aget-object v9, v4, v3

    const-string v10, "\t"

    const/4 v11, 0x0

    const/4 v12, 0x0

    invoke-static {v9, v10, v11, v12}, Lkairo/android/i/m;->a(Ljava/lang/String;Ljava/lang/String;ZZ)[Ljava/lang/String;

    move-result-object v9

    aput-object v9, v8, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_0
    invoke-static {v8}, Lkairo/android/i/h;->a([[Ljava/lang/String;)V

    :cond_1
    const-string v3, "text.txt"

    invoke-static {v2, v3}, Lkairo/android/i/m;->a(Lkairo/android/i/g;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_3

    array-length v3, v4

    new-array v8, v3, [[Ljava/lang/String;

    move v3, v1

    :goto_1
    array-length v9, v8

    if-ge v3, v9, :cond_2

    aget-object v9, v4, v3

    const-string v10, "\\n"

    const-string v11, "\n"

    invoke-static {v9, v10, v11}, Lkairo/android/i/m;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v4, v3

    aget-object v9, v4, v3

    const-string v10, "\t"

    const/4 v11, 0x0

    const/4 v12, 0x0

    invoke-static {v9, v10, v11, v12}, Lkairo/android/i/m;->a(Ljava/lang/String;Ljava/lang/String;ZZ)[Ljava/lang/String;

    move-result-object v9

    aput-object v9, v8, v3

    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    :cond_2
    invoke-static {v8}, Lkairo/android/i/h;->b([[Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_5
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :cond_3
    invoke-virtual {v2}, Lkairo/android/i/g;->a()V

    :cond_4
    :goto_2
    :try_start_2
    invoke-virtual {v7}, Lc/c;->j()I
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0

    move-result v2

    if-lez v2, :cond_c

    :try_start_3
    invoke-virtual {v7}, Lc/c;->h()Z
    :try_end_3
    .catch Lkairo/android/ui/ad; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0

    :goto_3
    :try_start_4
    sget-object v2, Lnet/kairosoft/android/ninja_ja/Main;->h:Lkairo/android/ui/w;

    if-eqz v2, :cond_4

    sget-object v2, Lnet/kairosoft/android/ninja_ja/Main;->h:Lkairo/android/ui/w;

    invoke-virtual {v2}, Lkairo/android/ui/w;->c()I

    move-result v2

    const/4 v3, 0x3

    if-eq v2, v3, :cond_5

    sget-object v2, Lnet/kairosoft/android/ninja_ja/Main;->h:Lkairo/android/ui/w;

    invoke-virtual {v2}, Lkairo/android/ui/w;->c()I

    move-result v2

    if-nez v2, :cond_4

    :cond_5
    sget v2, Lnet/kairosoft/android/ninja_ja/Main;->i:I

    add-int/lit8 v3, v2, -0x1

    sput v3, Lnet/kairosoft/android/ninja_ja/Main;->i:I

    if-gtz v2, :cond_4

    const/4 v2, 0x0

    invoke-static {v2}, Lnet/kairosoft/android/ninja_ja/Main;->a(Lkairo/android/ui/w;)V
    :try_end_4
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_0

    goto :goto_2

    :catch_0
    move-exception v2

    move-object v4, v2

    iget-object v2, v5, Le/a;->af:Lkairo/android/i/k;

    if-nez v2, :cond_8

    new-instance v2, Lkairo/android/ui/g;

    const-string v3, "\uff74\uff97\uff70"

    invoke-direct {v2, v1, v3}, Lkairo/android/ui/g;-><init>(ILjava/lang/String;)V

    const-string v3, "\u9519\u8bef\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002"

    invoke-virtual {v2, v3}, Lkairo/android/ui/g;->a(Ljava/lang/String;)V

    invoke-virtual {v2}, Lkairo/android/ui/g;->a()I

    invoke-virtual {v6}, Lkairo/android/ui/a;->k()I

    move-result v2

    and-int/lit16 v2, v2, 0x800

    if-eqz v2, :cond_b

    :cond_6
    :goto_4
    if-eqz v0, :cond_c

    invoke-virtual {v7}, Lc/c;->l()Z

    new-instance v0, Lc/g;

    invoke-direct {v0, v4}, Lc/g;-><init>(Ljava/lang/Throwable;)V

    invoke-virtual {v7, v0}, Lc/c;->c(Lkairo/android/a/a;)Z

    :goto_5
    invoke-virtual {v7}, Lc/c;->j()I

    move-result v0

    if-lez v0, :cond_c

    :try_start_5
    invoke-virtual {v7}, Lc/c;->h()Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_5

    :catch_1
    move-exception v0

    goto :goto_5

    :catch_2
    move-exception v2

    move-object v2, v3

    :goto_6
    if-eqz v2, :cond_4

    invoke-virtual {v2}, Lkairo/android/i/g;->a()V

    goto :goto_2

    :catchall_0
    move-exception v0

    move-object v2, v3

    :goto_7
    if-eqz v2, :cond_7

    invoke-virtual {v2}, Lkairo/android/i/g;->a()V

    :cond_7
    throw v0

    :cond_8
    const-string v2, ""

    move-object v3, v2

    move v2, v1

    :goto_8
    invoke-virtual {v7}, Lc/c;->j()I

    move-result v8

    if-ge v2, v8, :cond_9

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v7, v2}, Lc/c;->a(I)Lkairo/android/a/a;

    move-result-object v8

    invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v8, "\n"

    invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    add-int/lit8 v2, v2, 0x1

    goto :goto_8

    :cond_9
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v8, v5, Le/a;->Z:Lkairo/android/i/k;

    iget-object v8, v8, Lkairo/android/i/k;->d:[Ljava/lang/String;

    aget-object v9, v8, v13

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v4}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v9, ":"

    invoke-virtual {v2, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v8, v13

    iget-object v2, v5, Le/a;->Z:Lkairo/android/i/k;

    iget-object v2, v2, Lkairo/android/i/k;->d:[Ljava/lang/String;

    aget-object v2, v2, v13

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x400

    if-le v2, v3, :cond_a

    iget-object v2, v5, Le/a;->Z:Lkairo/android/i/k;

    iget-object v2, v2, Lkairo/android/i/k;->d:[Ljava/lang/String;

    iget-object v3, v5, Le/a;->Z:Lkairo/android/i/k;

    iget-object v3, v3, Lkairo/android/i/k;->d:[Ljava/lang/String;

    aget-object v3, v3, v13

    iget-object v8, v5, Le/a;->Z:Lkairo/android/i/k;

    iget-object v8, v8, Lkairo/android/i/k;->d:[Ljava/lang/String;

    aget-object v8, v8, v13

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    add-int/lit16 v8, v8, -0x400

    invoke-virtual {v3, v8}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v13

    :cond_a
    :try_start_6
    invoke-virtual {v5}, Le/a;->d()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4

    :goto_9
    new-instance v2, Lkairo/android/ui/g;

    const-string v3, "\uff74\uff97\uff70"

    invoke-direct {v2, v1, v3}, Lkairo/android/ui/g;-><init>(ILjava/lang/String;)V

    const-string v3, "\u9519\u8bef\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002"

    invoke-virtual {v2, v3}, Lkairo/android/ui/g;->a(Ljava/lang/String;)V

    invoke-virtual {v2}, Lkairo/android/ui/g;->a()I

    invoke-virtual {v6}, Lkairo/android/ui/a;->k()I

    move-result v2

    and-int/lit16 v2, v2, 0x800

    if-nez v2, :cond_6

    :cond_b
    move v0, v1

    goto/16 :goto_4

    :cond_c
    invoke-virtual {p0}, Lnet/kairosoft/android/ninja_ja/Main;->b()V

    return-void

    :catch_3
    move-exception v2

    goto/16 :goto_3

    :catch_4
    move-exception v2

    goto :goto_9

    :catchall_1
    move-exception v0

    goto/16 :goto_7

    :catch_5
    move-exception v3

    goto/16 :goto_6
.end method

.method public final d()V
    .locals 1

    invoke-static {}, Lc/c;->a()Lc/c;

    move-result-object v0

    invoke-virtual {v0}, Lc/c;->b()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    
    sput-object p0, Lcom/liyong/test/Util;->context:Landroid/content/Context;

    const-string v0, "FuckStart"
    const-string v1, "Fuck"
    invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    invoke-super {p0, p1}, Lkairo/android/ui/IApplication;->onCreate(Landroid/os/Bundle;)V
    return-void
.end method

.method public final q()Lkairo/android/a/b;
    .locals 1

    invoke-static {}, Lc/c;->a()Lc/c;

    move-result-object v0

    return-object v0
.end method
